import request from '@/utils/request.js'
//查看告警记录列表
export function getpoleWarningListAPI(params){
    return request({
        url:'/pole/warning/list',
        method:'GET',
        params:params,
    })
}

//查看告警详情
export function getwarnDetailsAPI(id){
    return request({
        url:`/pole/warning/${id}`,
        method:'GET',
    })
}

//删除
export function delpoleWarningAPI(id){
    return request({
        url:`/pole/warning/${id}`,
        method:'DELETE',

    })
}

//派单
export function poleDispatchAPI(data){
    return request({
        url:`/pole/warning/send`,
        method:'PUT',
        data
    })
}